<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>专业</title>
</head>
<body>
  <button><a href="{% url 'magor:cadd' %}">添加专业</a></button>
  <button><a href="{% url 'magor:slist' %}">学生信息</a></button>
<body>
   <table border="1" cellspacing="0" width="800">
       <tr align="center">
           <td>专业</td>
           <td colspan="2">操作</td>
       </tr>
       {% for i in c %}
        <tr align="center">
           <td>{{ i.name }}</td>
           <td><a href="">修改</a></td>
           <td><a href="{% url 'magor:cdelete' i.id %}">删除</a></td>
       </tr>
       {% endfor %}
   </table>
</body>
</html>